function puzzleLetter()
	{
		this.text = "_";
		this.width=26;
		this.color = "#BB4444";
		
		this._correctLetter = "Z";
		this._hasBeenGuessed = false;
		this.gameOver = false;

		this.correctLetter = function(setValue) {
		    this._correctLetter = setValue.toUpperCase();
		    if (setValue == " ") { this._correctLetter = "&#160;"; }

		    //display any special characters.
		    if (setValue == "&" || setValue == "-" || setValue == "." || setValue == " " || setValue == "," || setValue == "'" || setValue == "!" || setValue == "?") {
		        this.displayHiddenCorrectValue(false);
		    }
		    else {
		        this.text = "_";
		        this._hasBeenGuessed = false;
		    }
		}
		
		this.hasBeenGuessed = function()
		{
		    return this._hasBeenGuessed;
		}
		
		//if the letter matches, set the value to that character
		//and return true.
		this.checkLetter = function(letter)
		{
			if(letter == this._correctLetter){
				this.displayHiddenCorrectValue(false);
				return true;
			}
			return false;
		}
		
		//Display the correct hidden value, and set the has been guessed flag.
		this.displayHiddenCorrectValue = function(gameOver)
		{
				this.text = this._correctLetter;
				this._hasBeenGuessed = !this.gameOver;
		}
		
	    this.displayGameOverLetter = function()
		{
			this.color = "#0000FF";
			this.displayHiddenCorrectValue(true);
		}
		
	}